package com.lijian.dubbo.consumer.main;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.lijian.dubbo.consumer.action.CallBackUserAction;

public class CallBackMainClass {
	@SuppressWarnings("resource")
	public static void main(String[] args){
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        context.start();
        CallBackUserAction userAction = context.getBean(CallBackUserAction.class);
		userAction.callBack("test1");
		
		userAction.callBack("test2");
		
		try {
			Thread.sleep(100000);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
